package com.gitee.wsl.security.hash.bcrypt

/**
 * Exception thrown on parsing if an illegal format has been detected.
 *
 *
 * Heavily used in [BCryptParser]
 */
class IllegalBCryptFormatException(s: String?) : Exception(s) {

    override val message: String?
        get() = super.message + " - example of expected hash format: '$2a$06\$If6bvum7DFjUnE9p2uDeDu0YHzrHM6tf.iqN8.yx.jNN1ILEf7h0i'" +
                " which includes 16 bytes salt and 23 bytes hash value encoded in a base64 flavor"
}
